package com.xxadmin.common.exception;


import com.xxadmin.common.exception.errorcode.BusinessErrorCodeEnum;

/**
 * 业务类自定义异常<br/>
 * 服务端提供方抛出该异常，调用方是不需要走断路器，直接抛出业务异常
 *
 * @author:chenming
 * @date:2018/4/25
 */
public class BusinessException extends ApplicationException {

    public BusinessException(String errorMessage){
        super(errorMessage);
    }

    public BusinessException(String errorCode,String errorMessage){
        super(errorCode,errorMessage);
    }

    public BusinessException(String errorMessage,Exception e){
        super(errorMessage,e);
    }

    public BusinessException(BusinessErrorCodeEnum businessErrorCodeEnum){
        super(businessErrorCodeEnum);
    }

    public BusinessException(BusinessErrorCodeEnum businessErrorCodeEnum,Exception e){
        super(businessErrorCodeEnum,e);
    }
}
